<template>
  <div class="manage">
    <van-nav-bar title="编辑我的收获地址" left-arrow right-text="删除" @click-left="back" />
    <van-address-edit
      :area-list="areaList"
      show-set-default
      show-search-result
      :search-result="searchResult"
      @save="onSave"
    />
  </div>
</template>

<script>
export default {
    data() {
    return {
      chosenAddressId: '1',
    }
  },

  methods: {
    onAdd() {
      this.$router.push("/insertaddress");
    },
    
    onEdit(item, index) {
      this.$toast('编辑地址:' + index);
    },
    back(){
        this.$router.go(-1);
    }
  }
};
</script>

<style scoped>
.van-icon,.van-nav-bar__text{
  color: #333;
  font-size: 30px;
}
.van-ellipsis {
  font-size: 30px;
}
.van-ellipsis {
  font-size: 30px;
}
.van-address-edit{
    margin-top:10px;
}
/deep/.van-button{
    position: fixed;
    bottom: 20px;
    width:90%;
    background: #000;
    color: #fff;
    border: 0;
}
</style>